<template>
	<view class="container">
		<!-- 顶部状态栏 -->
		<view class="status-bar">
			<view class="">会员规则</view>

			<h2>优果会员</h2>
			<view class="">积分兑换</view>
		</view>

		<!-- 会员信息 -->

		<view class="member-info">

			<image src="/static/image 12.png" class="avatar"></image>
			<view class="info">
				<text>等级：V1特权会员</text>
				<text>信用度：信用良好</text>
				<text>本月日均消费：17.5元</text>
				<text>距离V2等级：73.5元</text>
			</view>
		</view>

		<!-- 专属权益 -->
		<view class="exclusiveInterest">
			<view class="exclusiveInterestHeader">
				<h2>专属权益</h2>
			</view>
			<view class="exclusive-rights">

				<image src="@/static/exclude.png" class="avatar2"></image>
				<image src="@/static/assgin.png" class="avatar2"></image>
				<image src="@/static/birthdayBox.png" class="avatar2"></image>
				<image src="@/static/growPack.png" class="avatar2"></image>


			</view>
		</view>


		<!-- 等级升级任务 -->
		<view class="upgrade-tasks">
			<view class="tasksTitle">

				<h2>等级升级任务</h2>

			</view>
			<view class="taskContent">
				<view class="task">
					<view class="taskLeft">
						<image src="@/static/plan_red.png" mode=""></image>
						<view class="taskLeftText">
							<h3>每日签到</h3>
							<text>积分有奖</text>
						</view>
					</view>
					<view class="taskRight">
						<image src="@/static/attendBtn.png" mode=""></image>
					</view>
				</view>

				<view class="task">
					<view class="taskLeft">
						<image src="@/static/photoBtn.png" mode=""></image>
						<view class="taskLeftText">
							<h3>图片转发到动态</h3>
							<text>拍多张图有惊喜奖励呦！</text>
						</view>
					</view>
					<view class="taskRight">
						<image src="@/static/signBtn.png" mode=""></image>
					</view>
				</view>

				<view class="task">
					<view class="taskLeft">
						<image src="@/static/plan_red.png" mode=""></image>
						<view class="taskLeftText">
							<h3>问卷调查</h3>
							<text>参与更多问卷调查，优化体验</text>
						</view>
					</view>
					<view class="taskRight">
						<image src="@/static/signBtn.png" mode=""></image>
					</view>
				</view>


			</view>

		</view>
	</view>
</template>

<script>
	export default {
		methods: {
			signIn() {
				// 签到逻辑
			},
			takePhotos() {
				// 拍照逻辑
			},
			joinSurvey() {
				// 参与问卷调查逻辑
			},
		},
	};
</script>

<style>
	.container {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.status-bar {
		width: 100%;
		height: 50rpx;
		background-color: #f1f1f1;
		display: flex;

		align-items: center;
		justify-content: space-around;
	}

	.member-info {
		width: 700rpx;
		height: 400rpx;
		display: flex;
		flex-direction: row;
		align-items: center;
		margin-top: 20rpx;
		margin-bottom: 40rpx;
		background-color: #F6954E;
	}

	.avatar {
		width: 110rpx;
		height: 110rpx;
		border-radius: 50%;
		margin-left: 50rpx;
	}

	.avatar2 {
		width: 120rpx;
		height: 120rpx;
		margin-left: 30rpx;
	}

	.info {
		display: flex;
		flex-direction: column;
		margin-left: 100rpx;
		overflow: hidden;
	}

	.exclusiveInterest {
		width: 692rpx;
		height: 280rpx;

	}

	.exclusiveInterestHeader {
		margin-left: 24rpx;
	}

	.exclusive-rights {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		width: 80%;
		margin-top: 20rpx;
		margin-left: 24rpx;
	}

	.upgrade-tasks {
		width: 694rpx;
		height: 500rpx;
		display: flex;
		flex-direction: column;
		width: 80%;
		margin-top: 20rpx;
	}

	.taskContent {
		display: flex;
		flex-direction: column;
		justify-content: space-around;
	}

	.task {
		height: 116rpx;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		margin-top: 10rpx;
	}

	.taskLeft {
		float: left;
	}

	.taskLeft image {
		width: 72rpx;
		height: 72rpx;
		float: left;
	}

	.taskRight image {
		width: 132rpx;
		height: 50rpx;
		float: right;
	}

	.taskLeftText {
		display: flex;
		flex-direction: column;
	}

	.taskRight {
		float: right;
	}
</style>